package com.demo2do.fms.queue.dao.event;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Execute;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.supplier.common.Supplier;
import com.demo2do.fms.entity.vehicle.tractor.Tractor;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface TractorEventDao {

    /**
     * @param supplier
     * @param tractor
     */
    @Execute("UPDATE TractorEvent SET supplier = :supplier WHERE tractor = :tractor")
    public void update(@Variable("supplier") Supplier supplier, @Variable("tractor") Tractor tractor);
    
}
